package mest.service.Modeling.Impl;

import mest.dao.Modeling.IapartFileDao;
import mest.entity.apart_file;
import mest.service.Modeling.IapartFileService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description
 * @auther Machenike
 * @create 2019-11-15 21:21
 */

@Service
public class apartFileServiceImpl implements IapartFileService {


    @Resource
    private IapartFileDao iafd;

    @Override
    public int insertapartFile(apart_file ct)  {
        try {
            return iafd.insertapartFile(ct);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return 0;
    }

    @Override
    public int selectCount() {
        return iafd.selectCount();
    }

    @Override
    public List<apart_file> findApartFilePage(int index, int pageSize) {
        return iafd.findApartFilePage((index-1)*pageSize,pageSize);
    }
}
